package main

import "fmt"

func main() {
	/*
		 // 用go创建承载一个形参为空，返回值为空一个函数
		go func(){
				defer fmt.Println("A.defer")

		            func(){
						defer fmt.Println("B.defer")
		//	推出当前的goroutine
		                runtime.Goexit()
					    fmt.Println("B")
					}
		            fmt.Println("A")
			}()
	*/
	go func(a int, b int) bool {
		fmt.Println("a = ", a, " b = ", b)
		return true
	}(10, 20)
}
